cURL
curl --request POST \ --url http://localhost:3001/workflow/{id}/terminate \ --header 'Content-Type: application/json' \ --data ' { "reason": "<string>" } '
{ "terminated": true, "workflowId": "<string>", "runId": "<string>" }
Force terminates the latest run. Deprecated; use POST /workflow/{id}/runs/{rid}/terminate to target a specific run. Scheduled for removal after 2026-07-16.
POST /workflow/{id}/runs/{rid}/terminate
The workflow run was terminated